package adminConfigRepository

import (
	adminConfigModel "gitee.com/krio/ginc/example/internal/admin/config/model"
	commonEntry "gitee.com/krio/ginc/example/internal/common/entry/common"
	"github.com/gin-gonic/gin"
)

type AdminConfigRepos interface {
	ConfigAdd(ctx *gin.Context, one *adminConfigModel.AdminConfig) (int64, error)
	ConfigUpdate(ctx *gin.Context, req *adminConfigModel.AdminConfig) (int64, error)
	ConfigDelete(ctx *gin.Context, id []int64) error
	ConfigDetail(ctx *gin.Context, ids int64) (*adminConfigModel.AdminConfig, bool, error)
	ConfigDetailByInfo(ctx *gin.Context, info *adminConfigModel.AdminConfig) (*adminConfigModel.AdminConfig, bool, error)
	ConfigList(ctx *gin.Context, req *commonEntry.ListCommonReq) ([]*adminConfigModel.AdminConfig, int64, error)
}
